package cn.gzsf.csmall.passport.service.impl;


import cn.gzsf.csmall.passport.ex.ServiceException;
import cn.gzsf.csmall.passport.mapper.AdminMapper;
import cn.gzsf.csmall.passport.mapper.AdminRoleMapper;
import cn.gzsf.csmall.passport.mapper.RoleMapper;
import cn.gzsf.csmall.passport.pojo.entity.Admin;
import cn.gzsf.csmall.passport.pojo.entity.AdminRole;
import cn.gzsf.csmall.passport.pojo.param.AdminAddNewParam;
import cn.gzsf.csmall.passport.pojo.vo.RoleListItemVO;
import cn.gzsf.csmall.passport.service.IAdminService;
import cn.gzsf.csmall.passport.service.IRoleService;
import cn.gzsf.csmall.passport.web.ServiceCode;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Slf4j
@Service

public class RoleServiceImpl implements IRoleService {
    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<RoleListItemVO> list() {
        log.debug("开始处理[查询角色列表]的业务，无参数");
        return roleMapper.list();
    }
}
